<form nz-form [formGroup]="validateForm" ngxsForm="user.editForm">
  <nz-form-item>
    <nz-form-label [nzSpan]="6" nzFor="email">E-mail</nz-form-label>
    <nz-form-control [nzSpan]="14" nzHasFeedback [nzErrorTip]="emailErrorTpl">
      <input nz-input formControlName="email" type="email" id="email">
      <ng-template #emailErrorTpl let-control>
        <ng-container *ngIf="control.hasError('email')">输入的不是正确的E-mail!</ng-container>
        <ng-container *ngIf="control.hasError('required')">请输入E-mail!</ng-container>
      </ng-template>
    </nz-form-control>
  </nz-form-item>

  <nz-form-item>
    <nz-form-label [nzSpan]="6" nzFor="nickname">昵称</nz-form-label>
    <nz-form-control [nzSpan]="14">
      <input nz-input formControlName="nickname" id="nickname">
    </nz-form-control>
  </nz-form-item>
</form>
